﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ComputerVision.UserControls;

namespace ComputerVision
{
    public partial class frmBaoCao : Form
    {
        private ucBaoCaoTongHop ucTongHop;
        private ucBaoCaoDoanhThu ucDoanhThu;
        private ucBaoCaoXeTrongBai ucXeCon;
        public frmBaoCao()
        {
            InitializeComponent();
        }

        private void rdTongHop_CheckedChanged(object sender, EventArgs e)
        {
            ucTongHop = new ucBaoCaoTongHop();
            panelBaoCao.Controls.Clear();
            panelBaoCao.Controls.Add(ucTongHop);
            ucTongHop.Dock = DockStyle.Fill;
        }

        private void rbDoanhThu_CheckedChanged(object sender, EventArgs e)
        {
            ucDoanhThu = new ucBaoCaoDoanhThu();
            panelBaoCao.Controls.Clear();
            panelBaoCao.Controls.Add(ucDoanhThu);
            ucDoanhThu.Dock = DockStyle.Fill;
        }

        private void rbXetrongBai_CheckedChanged(object sender, EventArgs e)
        {
            ucXeCon = new ucBaoCaoXeTrongBai();
            panelBaoCao.Controls.Clear();
            panelBaoCao.Controls.Add(ucXeCon);
            ucXeCon.Dock = DockStyle.Fill;
        }
    }
}
